import 'package:flutter/material.dart';

class TutorialPage2 extends StatefulWidget {
  final String inputParams;

  const TutorialPage2({Key key, this.inputParams}) : super(key: key);

  @override
  _TutorialPage2State createState() => _TutorialPage2State();
}

class _TutorialPage2State extends State<TutorialPage2> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(title: Text('Page2')),
      floatingActionButton: FloatingActionButton(
        onPressed: () {
          Navigator.of(context).pushNamed('/page3');
        },
      ),
      body: Center(
        child: Text(widget.inputParams),
      ),
    );
  }
}
